package com.qidianit.mes.md.mapper;

import com.qidianit.mes.pojo.Unit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 奇幻夜之梦
 * @Company 起点编程
 * @Description
 * @Time 2024/10/17 17:15
 */
public interface UnitMapper {
    List<Unit> selectByPage(Unit unit);

    int save(Unit unit);

    int updateById(Unit unit);

    Unit selectById(Long unitId);

    int deleteById(Long unitId);

    int updateUnitsByIds(@Param("ids")String[] ids, @Param("statu") int statu);

    List<Unit> listUnits();
}

